import { getEmployeeList } from '@/api/employee'

const actions = {
  async getEmployeeListData({ commit }) {
    return new Promise((resolve, reject) => {
      getEmployeeList().then(response => {
        console.log(response)
      })
    })
  }
}

const mutations = {
  SET_EMPLOYEE_LIST_DATA: (state, data) => {
    state.employeeListData = data
  }
}

const state = {
  employeeListData: []
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
